<?php

namespace App\Http\Controllers;

use App\Http\Models\User;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\Auth;

class NoticeController extends Controller
{
    public function index()
    {
        /* @var User $user */
        $user = Auth::user();
        /* @var $notices Collection */
        $notices = $user->notices;

        return view('notice.index', compact('notices'));
    }
}
